package comi.example.xiong.bearfruit.my;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;

import com.example.softdk.ycshop.R;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import comi.example.xiong.bearfruit.MainActivity2;

public class UpdateUserInfoActivity extends AppCompatActivity {

    @BindView(R.id.tv_title)
    TextView tvTitle;
    @BindView(R.id.iv_portrait)
    ImageView ivPortrait;
    @BindView(R.id.bt_update_user_info)
    Button btUpdateUserInfo;
    @BindView(R.id.et_email)
    EditText etEmail;
    @BindView(R.id.et_phone)
    EditText etPhone;
    @BindView(R.id.et_question)
    EditText etQuestion;
    @BindView(R.id.et_answer)
    EditText etAnswer;
    @BindView(R.id.bt_save)
    Button btSave;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_update_user_info);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.tv_title, R.id.iv_portrait, R.id.bt_update_user_info, R.id.et_email, R.id.et_phone, R.id.et_question, R.id.et_answer, R.id.bt_save})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.tv_title:
                break;
            case R.id.iv_portrait:
                break;
            case R.id.bt_update_user_info:
                break;
            case R.id.et_email:
                break;
            case R.id.et_phone:
                break;
            case R.id.et_question:
                break;
            case R.id.et_answer:
                break;
            case R.id.bt_save:
                Intent mIntent = new Intent(UpdateUserInfoActivity.this, MainActivity2.class);
                //mIntent.putExtra("statuCar", "1");
                startActivity(mIntent);
                finish();
                break;
        }
    }


}
